function [w,h]=get_screen_size
% get_screen_size: Get width and height of the whole screen
%
% SYNTAX:
%   [w,h] = get_screen_size
%   [size] = get_screen_size
%   Return width and height of the whole screen

%   Author: Hongbin Ma
%   Last updated: 2009-6-2 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

v=get(0,'ScreenSize');
w=v(3);
h=v(4);
if nargout<2,
    w=[w,h];
end;
